package com.east.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.east.bean.Role;
import com.east.utils.BaseMapper;

public interface RoleMapper extends BaseMapper<Role> {
	/**
	 * 根据id查询对应的权限
	 * @param id
	 * @return
	 */
	List<Role> finByRolePriv(@Param("id")Integer id);
	/**
	 * 根据id查询对应的权限
	 * @param id
	 * @return
	 */
	List<Integer> finByRolePrivList(@Param("id")Integer id);
	
	int insertRole(Role role);
	
	
}